/*
 * Copyright 2012-2013 konggeek.com All right reserved. This software is the confidential and proprietary information of
 * konggeek.com ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the license agreement you entered into with konggeek.com.
 */
package com.iuhao.orange.exception;

/** 类BusinessException.java的实现描述：业务处理异常
 * 
 * @author lizhh 2015年7月31日 下午6:40:58 */
public class BusinessException extends RuntimeException {

	private static final long serialVersionUID = -2194049526113051273L;
	private String errorCode;
	private String errorMessage;
	private String diamondBalance;

	/** @param errorCode
	 * @param errorMessage */
	public BusinessException(String errorCode, String errorMessage) {
		super();
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}

	public BusinessException(String errorCode, String errorMessage, String diamondBalance) {
		super();
		this.errorCode = errorCode;
		this.diamondBalance = diamondBalance;
		this.errorMessage = errorMessage;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public String getDiamondBalance() {
		return diamondBalance;
	}

	public void setDiamondBalance(String diamondBalance) {
		this.diamondBalance = diamondBalance;
	}

}
